package cn.neusoft.service;

import java.util.List;

import cn.neusoft.domain.Commodity;
import cn.neusoft.domain.CommodityClass;
import cn.neusoft.domain.Customer;
import cn.neusoft.query.BaseQuery;
import cn.neusoft.vo.PageBean;

public interface CommodityClassService {

    void add(CommodityClass c);

    void delete(Integer id);

    void update(CommodityClass c);

    List<CommodityClass> getAll();

    CommodityClass getById(Integer id);

    List<CommodityClass> getByName(String name);

    List<CommodityClass> getCommodityClassesByPage(int page, int pageSize);

    int getTotalCount();

    PageBean<CommodityClass> findByPage(BaseQuery query);

    void deleteByFirstClass(String first_class);
    void deleteByFirstClassSecond(String first_class);
}
